import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
  // {
  //   title: '子账户ID',
  //   align: "center",
  //   dataIndex: 'subAccountId'
  // },
  // {
  //   title: '户名',
  //   align: "center",
  //   width: 200,
  //   dataIndex: 'name'
  // },
  {
    title: '账户信息',
    align: "center",
    dataIndex: 'account',
    width: 300,
    slots: { customRender: "accountSlot" }
  },
  {
    title: '服务公司',
    align: "center",
    width: 200,
    dataIndex: 'serviceCompanyId_dictText'
  },
  {
    title: '税率(%)',
    align: "center",
    width: 80,
    dataIndex: 'taxRate',
    customRender:({text}) =>{
      return !text ? "0.0000" : (parseFloat(text)*100).toFixed(4);
    },
  },
  {
    title: '余额',
    align: "center",
    width: 100,
    dataIndex: 'balance',
    customRender:({text}) =>{
      return !text ? "0.00" : parseFloat(text).toFixed(2);
    },
  },
  {
    title: '创建时间',
    align: "center",
    width: 120,
    dataIndex: 'createTime'
  },
];

//查询数据
export const searchFormSchema: FormSchema[] = [

];

//表单数据
export const formSchema: FormSchema[] = [

];
